package com.tongjie.hotelbooking.user.repository;

import com.tongjie.hotelbooking.user.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Long>, CrudRepository<User, Long>, JpaSpecificationExecutor<User> {

    User getUserByUsername(String username);

    User getUserByWxOpenId(String wxOpenId);

    User getUserByMobile(String mobile);

}
